package chapter20.homework2;

public class ConcreteWindow extends Window{
    private GraphicPane graphicPane;
    private ListPane listPane;
    private TextPane textPane;

    public ConcreteWindow(GraphicPane graphicPane, ListPane listPane, TextPane textPane) {
        this.graphicPane = graphicPane;
        this.listPane = listPane;
        this.textPane = textPane;
    }

    public GraphicPane getGraphicPane() {
        return graphicPane;
    }

    public void setGraphicPane(GraphicPane graphicPane) {
        this.graphicPane = graphicPane;
    }

    public ListPane getListPane() {
        return listPane;
    }

    public void setListPane(ListPane listPane) {
        this.listPane = listPane;
    }

    public TextPane getTextPane() {
        return textPane;
    }

    public void setTextPane(TextPane textPane) {
        this.textPane = textPane;
    }

    @Override
    public void doSomeThing(chapter20.homework2.Pane pane, String order) {
        pane.update(order);
    }
}
